<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
/**
 * @var Mage_Page_Block_Html_Header $this
 */
?>

<div class="header">
        <div class="head-left">

            <div class="logo">
                <a href="<?php echo $this->getUrl("") ?>">
                    <img alt="<?php echo $this->getLogoAlt() ?>"
                         src="<?php echo $this->getLogoSrc() ?>"
                         title="<?php echo $this->getLogoAlt() ?>"/>
                </a>
            </div>
        </div>
        <div class="head-right">
            <div class="link-top">
                <ul class="links">

                        <?php if($this->helper('customer')->isLoggedIn()):?>
                            <li><a href="<?php echo  $this->getUrl('customer/account/logout')?>"><?php echo $this->__('Sign Out')?> </a></li>
                        <?php else:?>
                            <li><a href="<?php echo $this->getUrl('customer/account/login')?>"><?php echo $this->__('Sign in')?> </a></li>
                            <li><a href="<?php echo $this->getUrl('customer/account/login') ?>"><?php echo $this->__('Resgister Now')?></a></li>
                        <?php endif;?>

                    <li><a href="#"><?php echo $this->__("Catalog") ?> </a></li>
                    <li >
                        <a class="cart" href="<?php echo $this->getUrl('checkout/cart')?>"><?php echo $this->__('Cart Contains: %d Items', Mage::helper('checkout/cart')->getItemsCount()) ?> </a>
                    </li>

                </ul>
            </div>
            <div class="nav-container clear">
                <ul class="nav">
                    <li><a class="active" href="<?php echo $this->getUrl("") ?>"><?php echo $this->__("HOME") ?></a></li>
                    <li><a href="product.html"><?php echo $this->__("PRODUCTS") ?></a></li>
                    <li><a href="#"><?php echo $this->__("SPECIAL OFFERS") ?></a></li>
                    <li><a href="#"><?php echo $this->__("CUSTOMER CARE") ?></a></li>
                </ul>
                <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home_contact')->toHtml(); ?>

            </div><!--end nav-container-->
            <div class="box-search">
                <form>
                    <?php echo $this->getChildHtml('topSearch') ?>
                    <!--
                    <div class="search">
                        <span>FIND YOUR PATH(s)</span>
                        <input class="txt-search" type="text"  value='Enter keyword or NBS Part Number'  onblur="if(this.value=='') this.value='Enter keyword or NBS Part Number'" onFocus="if(this.value =='Enter keyword or NBS Part Number' ) this.value=''"  />
                        <input type="submit" class="btn-search" value="Search" />
                    </div>
                    -->
                </form>
                <div class="search-adv">
                    <a class="search-advanced" href="">Advanced Search</a>
                    <a class="build"href="">BUILD YOUR ORDER</a>
                </div>
            </div>
        </div><!--end head-right-->
    </div><!--end header-->
        
<div class="header-container">
    <div class="header">
        <?php if ($this->getIsHomePage()):?>
        <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
        <?php else:?>
        <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
        <?php endif?>
        <div class="quick-access">
            <?php echo $this->getChildHtml('topSearch') ?>
            <p class="welcome-msg"><?php echo $this->getWelcome() ?> <?php echo $this->getAdditionalHtml() ?></p>
            <?php echo $this->getChildHtml('topLinks') ?>
            <?php echo $this->getChildHtml('store_language') ?>
        </div>
        <?php echo $this->getChildHtml('topContainer'); ?>
    </div>
</div>
<?php echo $this->getChildHtml('topMenu') ?>
